package de.cbf.cam.dsa.model.test;

import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;

import de.cbf.cam.dice.entities.RollDataModifier;
import de.cbf.cam.dsa.model.orders.IOrderListener;

public abstract class ListenerLogic implements PropertyChangeListener{//listener brought by Maneuver, in model
	/**
	 * @uml.property  name="commandListener"
	 */
	protected IOrderListener 	commandListener;
	/**
	 * @uml.property  name="throwDataTarget"
	 * @uml.associationEnd
	 */
	protected RollDataModifier 		rollDataTarget;

	@Override
	public abstract void propertyChange(PropertyChangeEvent evt) ;
	public abstract void removeSelf();

	/**
	 * @return
	 * @uml.property  name="throwDataTarget"
	 */
	public RollDataModifier getRollDataTarget() {
		return rollDataTarget;
	}

	/**
	 * @param throwDataTarget
	 * @uml.property  name="throwDataTarget"
	 */
	public void setRollDataTarget(RollDataModifier throwDataTarget) {
		this.rollDataTarget = throwDataTarget;
	}

	/**
	 * @return
	 * @uml.property  name="commandListener"
	 */
	public IOrderListener getCommandListener() {
		return commandListener;
	}
	/**
	 * @param listener
	 * @uml.property  name="commandListener"
	 */
	public void setCommandListener(IOrderListener listener) {
		this.commandListener = listener;
	}

}